#!/cygdrive/c/Python27_64/python.exe
# -*- coding: utf-8 -*-

import os
import wx

class ApkInfoForm(wx.Frame):
    def __init__(self, actnum):
        wx.Frame.__init__(self, None, -1, u"ApkInfo--w00388158")
        panel = wx.Panel(self)

        icon = wx.Icon("res" + os.path.sep + "logo.png")
        self.SetIcon(icon)

        mainSizer = wx.BoxSizer(wx.VERTICAL)
        btnSizer = wx.GridBagSizer(hgap=2, vgap=5)

        self.ActivityBtn = wx.Button(panel, -1, u"共定义了" + unicode(actnum) + u"个activity", size=(300, 50))

        btnSizer.Add(self.ActivityBtn, pos=(0,0), span=(1,1), flag=wx.wx.EXPAND)

        btnSizer.AddGrowableCol(0)
        btnSizer.AddGrowableRow(0)


        mainSizer.Add(btnSizer, 0, wx.EXPAND|wx.ALL, 10)

        panel.SetSizer(mainSizer)
        mainSizer.Fit(self)
        mainSizer.SetSizeHints(self)

if __name__ == "__main__":
    app = wx.PySimpleApp()
    ApkInfoForm(345).Show()
    app.MainLoop()
